<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<input type="text" class="aaa" />账号<br />
		<button @click='send'>注册</button>
	</body>
	<script src="js/base/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/base/vue.js" type="text/javascript" charset="utf-8"></script>
	<script>
		var ss;
		var dd;
		new Vue({
			el: "body",
			methods: {
				send: function() {
					$.ajax({
						type: "get",
						url: "http://v2.mashupcloud.cn/developer/auth.do",
						data: {
							appkey: 'FvWrIYOQoTUYVbscUNQoQAVqsLnZqKEN',
							appsecret: 'ugCfcSmyLkcbCGfIuFOPEgTgPQPbyJSE'
						},
						success: function(json) {
							ss = JSON.parse(json)[1];
							dd = JSON.parse(json)[2];
							$.ajax({
								type: "get",
								url: "http://v2.mashupcloud.cn/SQL/sele_tie/",
								data: {
									appid: dd,
									token: ss,
									name: 'sele_tie'
								},
								success: function(json) {
									var vue = new Vue({
										el: "body",
										data: {
											list: []
										}
									})
									for (var i = 0; i < JSON.parse(json)[2].length; i++) {
										//										console.log(JSON.parse(json)[2][i].fenlei)
//										obj = {
//											fenlei: JSON.parse(json)[2][i].fenlei
//										}
										vue.list.push(JSON.parse(json)[2][i].fenlei)
									}
//									console.log(vue.list)
									console.log($.unique(vue.list))
								}
							});
						}
					});
				}
			}
		})
	</script>

</html>